#!/usr/bin/env node

const {EventEmitter}=require('events');
const util=require('util');

function Radio(station){
    EventEmitter.call(this);

    let self=this;

    setTimeout(()=>{
        self.emit('play',station);
    },0);

    setTimeout(()=>{
        self.emit('stop',station)
    },5000)
}

util.inherits(Radio,EventEmitter);
/**
 * Radio继承自EventEmitter
 */
module.exports=Radio;